package com.example.tkmapper.service;
import java.util.Date;

import com.example.tkmapper.dao.ActivityTodayDataMapper;
import com.example.tkmapper.entity.ActivityTodayData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author huxiao
 * @description ActivityTodayDataService
 * @date 2022/3/28 4:49 下午
 */
@Service
public class ActivityTodayDataService {

    @Autowired
    private ActivityTodayDataMapper activityTodayDataMapper;

    public void save() {
        ActivityTodayData activityTodayData = new ActivityTodayData();
        activityTodayData.setId(0L);
        activityTodayData.setAppId(0L);
        activityTodayData.setPageId(0L);
        activityTodayData.setActivityId(0L);
        activityTodayData.setOrganId(0L);
        activityTodayData.setActivityModel("");
        activityTodayData.setPv(0);
        activityTodayData.setUv(0);
        activityTodayData.setGivePrizeCount(0);
        activityTodayData.setJoinUserCount(0);
        activityTodayData.setTotalUv(0);
        activityTodayData.setJoinUserTotalCount(0);
        activityTodayData.setSaveDate(new Date());
        activityTodayData.setCreatedAt(new Date());
        activityTodayData.setUpdatedAt(new Date());

        activityTodayDataMapper.insertSelective(activityTodayData);
    }
}
